package com.xinggq.user.api.feign;

import com.xinggq.common.CommonResult;
import com.xinggq.user.api.dto.UserInfoDTO;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description
 * @Author xinggq
 * @Date 2025/10/30
 */
@FeignClient(name = "box-user-center", path = "/api/user/info")
@Tag(name = "用户信息API", description = "提供用户信息相关接口")
public interface UserInfoApi {

  /**
   * 根据用户ID获取用户信息
   *
   * @param userId 用户ID
   * @return 用户信息
   */
  @GetMapping("/{userId}")
  CommonResult<UserInfoDTO> getUserById(@PathVariable("userId") Long userId);

}
